import request from './request'

export async function getMessages(page = 1, limit = 10) {
  return await request.get('/api/message', {
    params: {
      page,
      limit
    }
  })
}

export async function postMessage(msgInfo: any) {
  return await request.post('/api/message', msgInfo)
}
//获取验证码
export async function getCaptcha() {
  return await request.get('/api/captcha')
}
//验证验证码
export async function postVerifyCode(vCode: string) {
  return await request.post('/api/captcha/verifyCode', vCode)
}
